package com.ssy.lingxi.settle.accounts.repository;

import com.ssy.lingxi.settle.accounts.entity.MemberSettlementDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

/**
 * 会员结算
 * @author 伍将
 * @date 2020/10/23
 * @version 2.0.0
 */
public interface MemberSettlementRepository extends JpaRepository<MemberSettlementDO, Long>, JpaSpecificationExecutor<MemberSettlementDO> {
    /**
     * 更加结算编码获取会员结算单
     * @param tradeNo 会员结算单编码
     * @return 会员结算单编码
     */
    Optional<MemberSettlementDO> findByTradeNo(String tradeNo);
}
